package legumes.client.ui.widgets.list;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.SimplePanel;

public class ComboOrderedListSimplePanel extends SimplePanel {
	
	private ComboOrderedListWidget listWidget;
	
	public ComboOrderedListSimplePanel(ComboOrderedListWidget listWidget_){
		super();
		setStyleName("navbarCombo");
		listWidget = listWidget_;
		

		//registration = 
		addDomHandler(
			new ClickHandler() {
	            public void onClick(final ClickEvent event) {
	            	ComboOrderedListSimplePanel.this.setVisible(! ComboOrderedListSimplePanel.this.isVisible() );
	            }
	        }, ClickEvent.getType());
		
		add(listWidget);
	}
	
}
